package com.umeng.common.b;

import java.net.URLEncoder;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;

public class h
{
  public static String a(Map<String, Object> paramMap, String paramString)
  {
    if ((paramMap == null) || (paramMap.isEmpty()))
      return paramString;
    StringBuilder localStringBuilder1 = new StringBuilder(paramString);
    Set localSet = paramMap.keySet();
    if (!(paramString.endsWith("?")))
      localStringBuilder1.append("?");
    Iterator localIterator = localSet.iterator();
    if (!(localIterator.hasNext()))
    {
      label55: localStringBuilder1.deleteCharAt(-1 + localStringBuilder1.length());
      return localStringBuilder1.toString();
    }
    String str1 = (String)localIterator.next();
    StringBuilder localStringBuilder2 = new StringBuilder(String.valueOf(URLEncoder.encode(str1))).append("=");
    if (paramMap.get(str1) == null);
    for (String str2 = ""; ; str2 = paramMap.get(str1).toString())
    {
      localStringBuilder1.append(URLEncoder.encode(str2) + "&");
      break label55:
    }
  }
}

/* Location:           H:\360云盘\lewa_explorer_3.0\bin\FileApp_orig_dex2jar.jar
 * Qualified Name:     com.umeng.common.b.h
 * JD-Core Version:    0.5.2
 */